<%--
  Created by IntelliJ IDEA.
  User: jijunxiang
  Date: 2021/11/25
  Time: 15:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int vip = (Integer) session.getAttribute("vip");
    if (vip==0){
        out.print("<script>alert(\"你的余额不足，充值 VIP 失败！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/management2.jsp'</script>");
    }else if (vip==1){
        out.print("<script>alert(\"恭喜您充值VIP成功！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/management2.jsp'</script>");
    }else if (vip==2){
        out.print("<script>alert(\"您已经是 VIP 用户不需要充值！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/management2.jsp'</script>");
    }else {
        out.print("<script>alert(\"网络错误请稍后再试！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/payvip.jsp'</script>");
    }
%>
</body>
</html>
